<template>
    <div>
        <!-- 轮播图区域 -->
       <mt-swipe :auto="4000">
           <!-- 谁使用轮播图组件谁就为我们传递lunbotuList -->
           <!-- lunbotuList是父组件像子组件传值来设置 -->
           <mt-swipe-item v-for="item in lunbotuList" :key="item.url" >
               <img :src="item.img" alt="" :class="{'full':isfull}">
           </mt-swipe-item>
       </mt-swipe>   
       </div>      
</template>
<script>
export default{
props:["lunbotuList","isfull"]
}
</script>      
<style lang="scss" scoped>
.mint-swipe {
    height: 180px;
 
}
.mint-swipe-item{
       text-align: center;
}

img{
    height: 100%;
}
.full{
    width: 100%;
}
</style>
